package cn.zcy.until;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Role;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

@Component
@Scope(value ="prototype" )
public class LogUntil {

    @PostConstruct
    public void init() {
        System.out.println("对象初始化了");
    }

    public LogUntil() {
        System.out.println("对象创建了");
    }



    @PreDestroy
    public void destroy() {
        System.out.println("对象销毁了");
    }
}
